<?php

/**
 * Project form base class.
 *
 * @package    ingenyo
 * @subpackage form
 * @author     Your name here
 */
abstract class BaseFormPropel extends sfFormPropel
{

  public function setup()
  {
//    $formatter = new pmWidgetFormSchemaFormatterTable($this);
//    $this->getWidgetSchema()->addFormFormatter("pm_table", $formatter);
//    $this->getWidgetSchema()->setFormFormatterName("pm_table");

    $this->configureWidgets();
    $this->configureValidators();

    // auto configure widgets
    WidgetFactory::replaceWidgets($this);
    // auto configure validators
    ValidatorFactory::replaceValidators($this);



  }

  public function configureWidgets()
  {

  }

  public function configureValidators()
  {

  }

}
